package com.tengju.bff.interfaces.covercharge.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tengju.bff.interfaces.covercharge.entity.po.ServiceLetaxRegisteredReturn;
import com.tengju.bff.interfaces.covercharge.mapper.ServiceLetaxRegisteredReturnMapper;
import com.tengju.bff.interfaces.covercharge.service.IServiceLetaxRegisteredReturnService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 乐税个体户注册异步信息返回表 服务实现类
 * </p>
 *
 * @author xiaoxin
 * @since 2020-07-08
 */
@Service
@Slf4j
public class ServiceLetaxRegisteredReturnServiceImpl extends ServiceImpl<ServiceLetaxRegisteredReturnMapper, ServiceLetaxRegisteredReturn> implements IServiceLetaxRegisteredReturnService {

    @Autowired
    private ServiceLetaxRegisteredReturnMapper serviceLetaxRegisteredReturnMapper;
    /**
     * 获取总数
     * @param merchantTaxNumber
     * @return
     */
    @Override
    public Integer queryTotal(String merchantTaxNumber){
        /*log.info("乐税判断税号获取总数,merchantTaxNumber{}",merchantTaxNumber);
        QueryWrapper<ServiceLetaxRegisteredReturn> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("merchantTaxNumber", merchantTaxNumber);
        return serviceLetaxRegisteredReturnMapper.selectCount(queryWrapper);*/
        return this.baseMapper.queryTotal(merchantTaxNumber);
    }
}
